<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>	
	<h6><kbd>&nbsp;新增分类&nbsp;</kbd></h6>
		<form method="post" action="{:U(MODULE_NAME.'/Sort/createHandle')}" enctype="multipart/form-data">
			<input type="hidden" value="{$sort.id}" name="id"  />
			<label for="">父级分类</label>
			<select name="parent" class="form-control select-inverse-dropdown" id="">
					<option value="0">顶级分类</option>
				<foreach name="sorts" item="so">
						<eq name="sort.parent" value="$so.id">
							<option selected value="{$so.id}">{$so.name}</option>
						<else />
							<option value="{$so.id}">{$so.name}</option>
					</eq>
				</foreach>
			</select>
			<label for="txt_sortName">分类名称</label>
			<input id="txt_sortName" name="name" value="{$sort.name}"  type="text" class="form-control" placeholder="请输入分类名称" required />
			<label for="txt_description">描述</label>
			<input id="txt_description" type="text" value="{$sort.description}"  name="description" class="form-control" placeholder="请输入分类描述" required />
			<p></p>
			<input type="submit" class="btn btn-success" value="保 存" />
			<a href="{:U(MODULE_NAME.'/Sort/index')}" class="btn btn-danger ">返 回</a>
		</form>
		
	</body>		

</html>
